projects
/
gpsbabel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0dc9ce7
)
Fix math when converting nautical miles to statue miles. From Jason Slagle
author
robertl
<robertl>
Thu, 24 Apr 2003 15:13:27 +0000
(15:13 +0000)
committer
robertl
<robertl>
Thu, 24 Apr 2003 15:13:27 +0000
(15:13 +0000)
and approved by Alex.
position.c
patch
|
blob
|
history
diff --git
a/position.c
b/position.c
index 5e69f5e0b80df36c3cf632933544f34df4e20a78..36cceb54f0dcea1eca3b61d50a1ab4571c4992ba 100644
(file)
--- a/
position.c
+++ b/
position.c
@@
-109,7
+109,7
@@
position_process(void)
comp[i+1]->position.longitude.degrees);
/* convert radians to integer feet */
- dist = (int)((((dist * 180.0 * 60.0) / M_PI)
/
1.1516) * 5280.0);
+ dist = (int)((((dist * 180.0 * 60.0) / M_PI)
*
1.1516) * 5280.0);
if (dist <= pos_dist) {
waypt_del(comp[i]);